<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;  charset=utf-8" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>抓取管理</title>
<link href="/admin/style/user/admin.css" type="text/css" rel="stylesheet" media="screen" />
<script type="text/javascript" src="http://www.sinaimg.cn/cj/dfz/js/base_v_0.1.js" charset="utf-8"></script> 
<style type="text/css">
.rstrt_span{display:inline-block;border:1px solid #ccc;background:#eee;padding:0 15px;line-height:28px;font-size:14px}

.down {background:url(/admin/images/sort_dn.gif) no-repeat right 0;padding-right:18px;}
.up {background:url(/admin/images/sort_up.gif) no-repeat right 0;padding-right:18px;}
.kw{background:#ddd;color:#999;}
</style>
</head>
<body>
	<div class="sec-title">
		<h3 class="title"><a href="#">游戏秀</a><i>&gt;</i>抓取管理</h3>
	</div>
	
	
	<div style="margin:10px;">
		<form>
			&nbsp;&nbsp;
			&nbsp;&nbsp;
			uid
			<input type="text" name="uid" value="{%$g_show.uid%}">  搜索词：
			<input type="text" name="key" value="{%$g_show.key%}">
			需要添加到哪个站：
			<select name="topic_id" id="topic_id">
			
{%foreach name=count key=key item=value from=$config.site_name%}
				<option value={%$key%}>{%$value%}</option>
				{%/foreach%}
				</select>
			<input type=hidden name='is_used' value={%$g_show.is_used%}></input>
			<input type=submit value="查询"></input>
			
		</form>
		
	</div>
	<div style="margin:10px;">
		
	</div>
	
	<div class="w10">
	<table class="table-list">
		<tr>
		<th>用户昵称</th>
		<th>内容</th>
		<th>图片</th>
		<th>时间</th>
		<th><input type="button" value="全选" class="select_all" ><input class="un_select_all" type="button" value="取消全选" ></th>
	<form id="form1">
		{%section name=count loop=$g_show.list%}
		<tr  class="cur data_tr" id="list_tr_{%$g_show.list[count].id%}">
		<td>
		{%$g_show.list[count].user.name%}
		</td>
		<td>
		{%$g_show.list[count].text%}
		</td>
		<td>
		<a href="{%$g_show.list[count].bmiddle_pic%}" target="_blank"><img src="{%$g_show.list[count].thumbnail_pic%}" style="max-width:120px; max-height=200px"></a>
		</td>
		<td>
		{%$g_show.list[count].create_time%}
		</td>
		<td>
		{%if $g_show.list[count].have_get %}
		已经入库
		{%else%}
		<input type="checkbox" name="mids[]" value="{%$g_show.list[count].idstr%}">
		{%/if%}
		</td>


		</tr>
		{%sectionelse%}
		<tr><td colspan="8">
		目前列表中没有内容
		</td></tr>
		{%/section%}
	

	</table>
	</div>
	<div style="margin:10px;">
		
		<div style="display:inline;">
			{%$g_show.page_bar%}
		</div>
	</div>

	{%if $g_show.topic_tag_list%}
	<div style="margin:10px;">
		
		选择tag<select name="tag_id" id="tag_id">
			
{%foreach name=count key=key item=value from=$g_show.topic_tag_list%}
				<option value={%$value.id%}>{%$value.tag_name%}</option>
				{%/foreach%}
				</select><input type="button" class="add_mid_submit" value="提交">
	</div>
	{%/if%}
	</form>
	<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</body>
<script>


$(".select_all").bind("click",function(e){

	$(":checkbox").attr("checked",true)

});

$(".un_select_all").bind("click",function(e){

	$(":checkbox").attr("checked",false)

});
$("#topic_id").find("option[value="+"{%$g_show.topic_id%}"+"]").attr("selected",true);

$(".add_mid_submit").bind("click",function(e){

	$.post("get_mblog_by_search_uid_post.php",$("#form1").serialize(), function(json){
			if(typeof(json)!='undefined')
			{
				if(json.error == 1)
				{
					alert(json.errmsg)
				}
				else
				{
				
					alert(json.uid)
					
				}
				

				
			}

	});
});
</script>

</html>
